package byx.container.annotation.CustomInjectTest.b;

import byx.container.annotation.extension.impl.CustomInjector;
import byx.container.core.Container;
import byx.container.core.ObjectFactories;
import byx.container.core.ObjectFactory;

public class MyInjector1 implements CustomInjector {
    private final String msg;

    public MyInjector1(String msg) {
        this.msg = msg;
    }

    @Override
    public ObjectFactory<?> getObjectFactory(Container container) {
        return ObjectFactories.value(msg);
    }
}
